<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${news.name}</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Common/css/header.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/News/viewNews.css" />

</head>
<body>
<!-- 主容器开始 -->
<div class="divMainContainer">
	<jsp:include page="/Common/jsp/header.jsp"></jsp:include>
	<div class="divNewsContainer">
		<div class="divNewsTitleContainer">
			${news.name}
		</div>
		<div class="divHr">
				<hr class="hr"/>
		</div>
		<c:if test="${news.pictures != null}">
			<c:forEach var="picture" items="${news.pictures}">
				<div class="divNewsImage">
					<img width="400" height="300" src="<%=request.getContextPath()%>/newsPicture.htm?newsId=${news.id}"/>
				</div>
			</c:forEach>
		</c:if>
		<div class="divNewsContent">
			${news.contents}
		</div>
	</div>

	<jsp:include page="/Common/jsp/footer.jsp"></jsp:include>
</div>
<!-- 主容器结束-->
</body>
</html>